/**
 * @file DirScanner.hpp
 * @author your name (you@domain.com)
 * @brief
 * @version 0.1
 * @date 2022-04-05
 *
 * @copyright Copyright (c) 2022
 *
 */

#pragma once

#include <string>
#include <vector>

namespace wd
{
// 扫描语料目录，存入vector中，后续由RssReader解析
const int kFileNo = 10000;

class Configuration;

class DirScanner
{
  public:
    DirScanner(Configuration &conf);

    void operator()();
    std::vector<std::string> &files();
    void debug();

  private:
    void traverse(const std::string &dirName);

  private:
    Configuration &conf_;
    std::vector<std::string> vecFiles_;
};

} // end of namespace wd
